package com.ruoyi.system.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class Dept {
    private Long deptId;
    private String deptName;
    private Long parentId;

    public Dept(Dept dept) {
        if (Objects.nonNull(dept)){
            this.deptId = dept.getDeptId();
            this.deptName = dept.getDeptName();
            this.parentId = dept.getParentId();
        }
    }
}
